<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix='sec' uri='http://www.springframework.org/security/tags'%>
<head>
	<script type="text/javascript" src="scripts/boot.js"></script>
	<style type="text/css">
	    .errorText
	    {
	        color:red;
	    }
    </style>
</head>

<body>
	<form id="form1" method="post">
		<div style="padding-left:30px;padding-bottom:5px;padding-top: 25px;">
            <table style="table-layout:fixed;" cellspacing="0" cellpadding="10">
               <tr>
                    <td>开始时间：</td>
                    <td>
                   		<input name="startTime" readOnly="true" class="mini-datepicker" style="width: 180px" allowInput="false"/>
                	</td>
                </tr>
               <tr>
                    <td>结束时间：</td>
                    <td>
                   		<input name="endTime" readOnly="true" class="mini-datepicker" style="width: 180px" allowInput="false"/>
                	</td>
                </tr>
                <tr>
           			<td>休假天数：</td>
                    <td>    
                        <input name="days" readOnly="true" class="mini-textbox"  style="width: 180px"/>
                    </td>
            	</tr>
                <tr>
                	<td>休假类型：</td>
                	<td>    
                		<input name="leaveType" readOnly="true" class="mini-combobox" valueField="keyName" style="width: 180px" textField="keyValue" url="dictionary_key_val_view.do?typeName=LEAVE_TYPE"/>
                	</td>
                </tr>
                <tr>
                    <td>休假原因</td>
                    <td>
                        <input name="description" readOnly="true" class="mini-textarea" style="height:100px;width: 212px;" />
                    </td>
                </tr>
            </table>
        </div>
        <div style="text-align:center;padding:10px;">               
            <a class="mini-button" onclick="onCancel" style="width:60px;">关闭</a>       
        </div>
	</form>
</body>

<script type="text/javascript">
	mini.parse();
	var form = new mini.Form("form1");
	
	function SetData(data){
	     data = mini.clone(data);
	     form.setData(data.row);
	}
	
	function CloseWindow(action) {            
        if (window.CloseOwnerWindow) return window.CloseOwnerWindow(action);
        else window.close();            
    }
	
	function onCancel(e) {
        CloseWindow("cancel");
    }

</script>